package com.tangweiliang.group;

import org.springframework.context.annotation.DeferredImportSelector;
import org.springframework.core.type.AnnotationMetadata;

import java.util.ArrayList;
import java.util.List;

/**
 * @author :tangweiliang
 * @date : 2023/1/7 15:21
 * 未来的你会感谢现在努力的自己
 */
public class TangweiliangGroup1 implements DeferredImportSelector.Group {
    private List list;

    @Override
    public void process(AnnotationMetadata metadata, DeferredImportSelector selector) {
        // 把需要返回配置的类添加到list集合里
        System.out.println(selector.getClass());
    }

    @Override
    public Iterable<Entry> selectImports() {
        // 返回list  把需要返回类的名字封装成一个Entry对象
        return new ArrayList<>();
    }
}
